<include file="Index:header" />
<div class="panel panel-primary" style="float:left;width:18%;height:620px">
    <div class="panel-heading">导航条</div>
    <div class="panel-body">
        <ul class="nav nav-pills nav-stacked" role="tablist">
            <li role="presentation"><a href="__APP__/Student/profile">个人中心</a></li>
            <li role="presentation" class="active" ><a href="__APP__/TeachReview/reviewlist">教学评价</a></li>
            <li role="presentation" ><a href="__APP__/Student/passwd">修改密码</a></li>
            <li role="presentation"><a href="__APP__/Public/loginout">退出系统</a></li>
        </ul>
    </div>
</div>
<div class="panel panel-primary" style="float:left;width:81%;margin-left:1%;height:620px">
    <div class="panel-heading">
        <h3 class="panel-title">教学评价</h3>
    </div>
    <div class="panel-body">
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>课程编号</th>
                    <th>课程名称</th>
                    <th>任课教师</th>
                    <th>评教结束时间</th>
                    <th>评价状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="reviewInfoList" id="reviewinfo">
                <tr>
                    <td>{$reviewinfo.cu_id}</td>
                    <td>{$reviewinfo.cu_name}</td>
                    <td>{$reviewinfo.it_name}</td>
                    <td>{$reviewinfo.review_end_time}</td>
                    <td>
                        <if condition="$reviewinfo.review_status eq 1">
                        <span class="label label-danger">待评价</span>
                        <elseif condition="$reviewinfo.review_status eq 2" />
                        <span class="label label-danger">未开始</span>
                        <elseif condition="$reviewinfo.review_status eq 5" />
                        <span class="label label-danger">已结束</span>
                        <else/><span class="label label-success">已评价</span>
                        </if>
                    </td>
                    <td><if condition="$reviewinfo.review_status eq 1"><button type="button" onclick="javascript:window.location.href='__APP__/TeachReview/review/id/{$reviewinfo.review_info_id}'" class="btn btn-primary">评价</button></if></td>
                </tr>
            </volist>
               <!-- <tr>
                    <td>2</td>
                    <td>Mark</td>
                    <td>Otto</td>
                    <td><span class="label label-success">已评价</span></td>
                    <td><button type="button" onclick="javascript:window.location.href='__APP__/TeachReview/review'" class="btn btn-primary">评价</button></td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Mark</td>
                    <td>Otto</td>
                    <td><span class="label label-danger">待评价</span></td>
                    <td><button type="button" onclick="javascript:window.location.href='__APP__/TeachReview/review'" class="btn btn-primary">评价</button></td>
                </tr>-->
            </tbody>
        </table>
    </div>
</div>
<include file="Index:footer" />
